package com.leyou.item.service;

import com.leyou.common.vo.PageResult;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;
import com.leyou.item.pojo.TbSpu;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * spu表，该表描述的是一个抽象性的商品，比如 iphone8 服务类
 * </p>
 *
 * @author leyou
 * @since 2020-02-29
 */
public interface TbSpuService extends IService<TbSpu> {

    PageResult<SpuDTO> findSpuByPage(Integer page, Integer rows, String key, Boolean saleable);

    void saveGoods(SpuDTO spuDTO);

    void updateSpuSaleable(Long spuID, Boolean saleable);

    SpuDetailDTO findSpuDetailBySpuId(Long id);

    void updateGoods(SpuDTO spuDTO);

    SpuDTO findSpuById(Long id);
}
